//
//  GKPlayable.h
//  AVPlayerDemo
//
//  Created by YIDAOMAC on 2024/1/16.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class AVPlayer;

///可播放的
@protocol GKPlayable <NSObject>

///
@property(nonatomic, assign) BOOL playing;

///
@property(nonatomic, readonly, nullable) NSURL *videoURL;

- (void)startPlayWithPlayer:(AVPlayer*) player;

- (void)stopPlayWithCurrentImage:(nullable UIImage*) currentImage;

@end

NS_ASSUME_NONNULL_END
